home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
video
/
zapem-0.000
/
zapem-0
/
zapem
/
projectile.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-30
|
777b
|
29 lines
#ifndef PROJECTILE_H
#define PROJECTILE_H
/* Requires weapon.h and sprite.h to be included */
const int MAXPROJECTILE=16; // for any projectile weapon
class Projectile : public Weapon
{
protected:
Sprite beam[MAXPROJECTILE];
int firerate; // number of ticks between firings
Sprite* owner; // sprite weapon is attached to
int energy; // How vicious is the gun?
int maxproj; // How many projectiles on screen?
public:
Projectile( Sprite* anchor, int rate, int energy, int maxproj);
virtual void replace(void);
virtual void move(void);
virtual void getBack(void);
virtual void paste(void);
virtual void fire(void);
bool collide(const Sprite &s);
virtual int getEnergy(void) const;
virtual void setSlot(int slot);
};
#endif